package com.insigma.business.qrcode.common.vo;


import com.insigma.business.qrcode.common.dto.ErrorCodeEnum;
import com.insigma.business.qrcode.common.util.ErrorContext;

public class BaseResponseExtend<T> extends BaseResponse<T> {
    public static <T> BaseResponse<T> success(T data) {
        return new BaseResponse<>(true, data);
    }

    public static <T> BaseResponse<T> error(String errorMsg) {
        return new BaseResponse<>(false, ErrorCodeEnum.COMMON_INNER_ERROR.getCode(), errorMsg);
    }
}
